package com.hejjon.graph.bean.options;

import com.alibaba.fastjson.JSONObject;

/**
 *  节点的配置项
 * @author: cs
 * @date: 2025-04-28 07:29:30
 * @since: 1.0
 */
public class Nodes {

    private String shape;       // 形状

    private Integer size;       // 大小

    private Integer borderWidth;    // 边框宽度

    private Integer borderWidthSelected;    // 节点被选中时边框的宽度

    /*
        color: {
            border: '#2B7CE9',//节点边框颜色
            background: '#97C2FC',//节点背景颜色
            highlight: {//节点选中时状态颜色高亮
              border: '#2B7CE9',
              background: '#D2E5FF'
            },
            hover: {//节点鼠标滑过时状态颜色
              border: '#2B7CE9',
              background: '#D2E5FF',
            }
          },

     */
    private JSONObject color;

    /*
        font: {//字体配置
            color: '#ffffff',//颜色
            size: 14, // 大小，单位px
            face: 'arial',//字体
            background: 'none',//背景
            align: 'center',//位置left right center
            vadjust: -46
          }
     */
    private JSONObject font;    // 字体

    private Boolean shadow;     // 阴影

    public String getShape() {
        return shape;
    }

    public void setShape(String shape) {
        this.shape = shape;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Integer getBorderWidth() {
        return borderWidth;
    }

    public void setBorderWidth(Integer borderWidth) {
        this.borderWidth = borderWidth;
    }

    public Integer getBorderWidthSelected() {
        return borderWidthSelected;
    }

    public void setBorderWidthSelected(Integer borderWidthSelected) {
        this.borderWidthSelected = borderWidthSelected;
    }

    public JSONObject getColor() {
        return color;
    }

    public void setColor(JSONObject color) {
        this.color = color;
    }

    public JSONObject getFont() {
        return font;
    }

    public void setFont(JSONObject font) {
        this.font = font;
    }

    public Boolean getShadow() {
        return shadow;
    }

    public void setShadow(Boolean shadow) {
        this.shadow = shadow;
    }
}
